#define _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include<iostream>
using namespace std;
void test()
{
	vector<int> v;
		v.push_back(1);
		v.push_back(2);
		v.push_back(3);
		v.push_back(4);
		v.push_back(5);
		for (int i = 0;i < v.size();++i)
		{
			cout << v[i] << " ";
		}
		/*cout << endl;

		cout << v.size() << endl;

		cout << v.capacity() << endl;

		v.reserve(15);
		cout << v.capacity() << endl;*/

		cout << v.front() << endl;
		cout << v.back() << endl;
		/*vector<int>::iterator it = v.begin();
		while (it != v.end())
		{
			cout << *it << " ";
			it++;
		}
		cout << endl;
		for (auto e : v)
		{
			cout << e << " " ;
		}*/
		/*cout << v.capacity() << endl;
		v.reserve(10);
		cout << v.capacity() << endl;
		v.reserve(3);
		cout << v.capacity() << endl;
		cout << v.size() << endl;*/



}

void test1()
{
	vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);

	v.insert(v.begin(), 0);
	v.insert(v.begin() + 2, 5);

	for (auto e : v)
	{
		cout << e << " ";
	}

}
int main()
{
	test1();
	
	return 0;

}